<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    import="com.microsoft.windowsazure.services.core.storage.*,
    		com.microsoft.windowsazure.services.blob.client.*,
java.util.Date, java.io.*"   
    %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Upload File</title>
</head>
<body>
	<%
	String storageConnectionString = 
	"DefaultEndpointsProtocol=http;" + 
	"AccountName=<??>;" + 
	"AccountKey=<??>";
	
	CloudStorageAccount storageAccount =
		    CloudStorageAccount.parse(storageConnectionString);
	CloudBlobClient blobClient = storageAccount.createCloudBlobClient();

	CloudBlobContainer container = blobClient.getContainerReference("myblobs");        			
	container.createIfNotExist();
	
	CloudBlockBlob blob = container.getBlockBlobReference("windows-azure.png");
	File source = new File("E:\\windows-azure.png");
	blob.upload(new FileInputStream(source), source.length());
%>
uploaded file
</body>
</html>